/**
 * Created by user on 17/2/15.
 */
module.exports = exports.default = class AuthUser {

    constructor() {
        this.isGuest = true;
    }

    /**
     * @param user
     */
    setUser(user) {
        this.isGuest = false;
        this.lang = user.lang;
        this.nick = user.nick;
        this.name = user.name;
        this.email = user.email;
        this.staffId = user.uid;
        this.nnId = user.futu_uid;
        this.cellphone = user.cellphone;
    }

};
